Emmanuele Bassi [Fri, 18 May 2007 15:48:43 +0000 (15:48 +0000)]
Mark string for translation. (#439437)
2007-05-18 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Mark
string for translation. (#439437)
svn path=/trunk/; revision=17865
Matthias Clasen [Fri, 18 May 2007 15:32:54 +0000 (15:32 +0000)]
Fix a typo
svn path=/trunk/; revision=17864
Michael J. Chudobiak [Fri, 18 May 2007 14:19:47 +0000 (14:19 +0000)]
Bump libtiff requirement to 3.6.0, by requiring presence of
2007-05-18 Michael J. Chudobiak <mjc@cvs.gnome.org>
* INSTALL.in:
* README.in:
* configure.in: Bump libtiff requirement to 3.6.0, by requiring
presence of TIFFReadRGBAImageOriented.
* gdk-pixbuf-scaled-anim.c: (get_scaled_pixbuf):
Preserve pixbuf options when generating a new scaled pixbuf.
* io-jpeg.c: (get_orientation), (gdk_pixbuf__jpeg_image_load),
(gdk_pixbuf__jpeg_image_load_increment): Read the exif
orientation tag and associate it with the "orientation" pixbuf
option. Renders libexif unnecessary in some applications.
* io-tiff.c: (tiff_image_parse): Read the tiff orientation tag,
compensate for the partial rotations performed by libtiff,
and generate an "orientation" option for the pixbuf.
svn path=/trunk/; revision=17863
Carlos Garnacho [Fri, 18 May 2007 13:31:29 +0000 (13:31 +0000)]
remove c++ style comment.
2007-05-18 Carlos Garnacho <carlos@imendio.com>
* gtk/gtkexpander.c: remove c++ style comment.
svn path=/trunk/; revision=17862
Carlos Garnacho [Fri, 18 May 2007 11:33:13 +0000 (11:33 +0000)]
Make combobox menu popdown keybindable (#433593)
2007-05-18 Carlos Garnacho <carlos@imendio.com>
Make combobox menu popdown keybindable (#433593)
* gtk/gtkcombobox.c (gtk_combo_box_class_init): Add "popdown" binding
signal and keybindings.
(gtk_combo_box_real_popdown): Added, "popdown" keybinding signal
handler.
(gtk_combo_box_menu_key_press):
(gtk_combo_box_list_key_press): forward the event to the combobox if
it wasn't handled by the menu.
svn path=/trunk/; revision=17861
Carlos Garnacho [Fri, 18 May 2007 11:07:04 +0000 (11:07 +0000)]
Allow widgets up in the hierarchy to run their DnD handlers if the target
2007-05-18 Carlos Garnacho <carlos@imendio.com>
* gtk/gtknotebook.c (gtk_notebook_init) (gtk_notebook_drag_motion)
(gtk_notebook_drag_drop): Allow widgets up in the hierarchy to run
their DnD handlers if the target doesn't match with anything the
notebook manages. (#350665, Joakim Lundborg).
svn path=/trunk/; revision=17860
Carlos Garnacho [Fri, 18 May 2007 10:38:42 +0000 (10:38 +0000)]
Refactor GtkFileChooserDialog sizing.
2007-05-18 Carlos Garnacho <carlos@imendio.com>
Refactor GtkFileChooserDialog sizing.
* gtkfilechooserembed.[ch] (delegate_get_resizable_hints)
(_gtk_file_chooser_embed_get_resizable_hints):
s/resizable_hints/resizable/, return just one boolean value to
determine whether the filechooser should be resizable or not.
* gtkfilechooserprivate.h (struct GtkFileChooserDialogPrivate): remove
variables related to the GtkFileChooserEmbed get_default_size() and
get_resizable() implementations.
(struct GtkFileChooserDefault): Move default size management here.
* gtkfilechooserdefault.c (gtk_file_chooser_default_size_allocate):
Added, store currently allocated size to calculate default size later.
(gtk_file_chooser_default_get_resizable_hints):
s/resizable_hints/resizable/.
(gtk_file_chooser_default_set_property): Reload settings if the file
chooser action changes, this way the save expander state will be known
before mapping the window, avoiding wrong window positioning and
flickering. (#424299, #424309)
(find_good_size_from_style): Only get size from style if it wasn't set
previously.
(gtk_file_chooser_default_get_default_size): return default size based
on stored default size and preview/extra widget sizes.
* gtkfilechooserdialog.c (file_chooser_widget_update_hints)
(file_chooser_widget_realized_size_changed)
(file_chooser_widget_unrealized_size_changed): simplified to
(file_chooser_widget_size_changed): set window size and resizability
based on the GtkFileChooserEmbed interface implementation. (Bug
#420285, Tomeu Vizoso)
(gtk_file_chooser_dialog_map): force a dialog size change, so it's
clamped for sure to the 75% of the screen size.
svn path=/trunk/; revision=17859
Carlos Garnacho [Fri, 18 May 2007 09:42:52 +0000 (09:42 +0000)]
Do not unset the brand new current page if there was none set previously.
2007-05-18 Carlos Garnacho <carlos@imendio.com>
* gtk/gtknotebook.c (gtk_notebook_real_insert_page): Do not unset
the brand new current page if there was none set previously. Fixes
#425138 (Reported by Michail Crayson). Some code simplifications.
(gtk_notebook_draw_arrow): code style fix.
svn path=/trunk/; revision=17858
Theppitak Karoonboonyanan [Thu, 17 May 2007 10:58:07 +0000 (10:58 +0000)]
Updated Thai translation.
* th.po: Updated Thai translation.
svn path=/trunk/; revision=17857
Matthias Clasen [Wed, 16 May 2007 17:42:53 +0000 (17:42 +0000)]
Add ATK names to the Up, Down, and Root buttons. Keep the focus from
2007-05-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpathbar.c: Add ATK names to the Up, Down, and Root
buttons. Keep the focus from vanishing when Up or Down arrows
become insensitive or invisible. (#357005, Patrick Wade)
svn path=/trunk/; revision=17856
Brian Cameron [Wed, 16 May 2007 01:35:51 +0000 (01:35 +0000)]
Add Sun mediaLib support so that hardware acceleration via mediaLib is
2007-05-16 Brian Cameron <brian.cameron@sun.com>
* acconfig.h, configure.in, gdk/Makefile.am, gdkprivate.h, gdkrgb.c,
gdkdraw.c, gdk-pixbuf/gdk-pixbuf-scale.c,
gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/pixops/pixops.[ch],
gdk-pixbuf/pixops/timescale.c: Add Sun mediaLib support so that
hardware acceleration via mediaLib is enabled if mediaLib is
detected via configure. Enhancement request #344813. I was given
permission to commit in the bug report by Matthias Clasen.
* gdk/medialib.[ch]: New files added for mediaLib support.
* docs/reference/gdk-pixbuf/tmpl/scaling.sgml,
docs/reference/gdk/tmpl/rgb.sgml, gdk/gdkdraw.c: Add docs for
mediaLib support.
svn path=/trunk/; revision=17855
David Lodge [Tue, 15 May 2007 21:24:43 +0000 (21:24 +0000)]
Updated en_GB translation
svn path=/trunk/; revision=17853
David Lodge [Tue, 15 May 2007 21:11:05 +0000 (21:11 +0000)]
Updated en_GB translation
svn path=/trunk/; revision=17852
Torsten Schoenfeld [Tue, 15 May 2007 17:57:27 +0000 (17:57 +0000)]
Unset priv->platform_data and priv->free_platform_data to prevent
2007-05-15 Torsten Schoenfeld <kaffeetisch@gmx.de>
* gtk/gtkprintoperation.c (pdf_end_run): Unset priv->platform_data and
priv->free_platform_data to prevent gtk_print_operation_finalize()
from freeing the cairo surface a second time.
svn path=/trunk/; revision=17851
Jorge Gonzalez Gonzalez [Tue, 15 May 2007 15:49:45 +0000 (15:49 +0000)]
Updated Spansih translation
svn path=/trunk/; revision=17850
Jorge Gonzalez Gonzalez [Tue, 15 May 2007 15:49:20 +0000 (15:49 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=17849
Kristian Rietveld [Mon, 14 May 2007 21:36:24 +0000 (21:36 +0000)]
remove dangling semicolon, fixes the segfault ebassi was seeing earlier
2007-05-14 Kristian Rietveld <kris@gtk.org>
* gtk/gtkfilechooserdefault.c (recent_column_path_sort_func): remove
dangling semicolon, fixes the segfault ebassi was seeing earlier today
;)
svn path=/trunk/; revision=17848
Ihar Hrachyshka [Mon, 14 May 2007 21:31:07 +0000 (21:31 +0000)]
Updated Belarusian Latin translation.
svn path=/trunk/; revision=17847
Daniel Nylander [Mon, 14 May 2007 19:51:32 +0000 (19:51 +0000)]
sv.po: Updated Swedish translation
svn path=/trunk/; revision=17846
Tristan Van Berkom [Mon, 14 May 2007 18:33:53 +0000 (18:33 +0000)]
Functions: gtk_about_dialog_get/set_name() were deprecated in favour of
* gtk/gtkaboutdialog.c: Functions: gtk_about_dialog_get/set_name()
were deprecated in favour of gtk_about_dialog_get/set_program_name(),
the GtkAboutDialog now uses the "program-name" property instead of
the conflicting "name" property (fixes bug 345822).
svn path=/trunk/; revision=17845
Emmanuele Bassi [Mon, 14 May 2007 15:35:37 +0000 (15:35 +0000)]
Add check for GNU extensions to ftw()/nftw().
2007-05-14 Emmanuele Bassi <ebassi@gnome.org>
* configure.in: Add check for GNU extensions to ftw()/nftw().
* gtk/gtksearchenginesimple.c: Fix compilation on systems with
only POSIX-compliant ftw(). (#435797, based on a patch by
Richard Hult)
svn path=/trunk/; revision=17844
Emmanuele Bassi [Mon, 14 May 2007 10:16:07 +0000 (10:16 +0000)]
Convert the GtkTreeIter inside the sorting functions for the search and
2007-05-14 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkfilechooserdefault.c:
Convert the GtkTreeIter inside the sorting functions for the
search and recent modes. This doesn't yet fix the segfault when
clicking the 'Name' column in recent mode, though.
svn path=/trunk/; revision=17843
Behdad Esfahbod [Mon, 14 May 2007 10:10:46 +0000 (10:10 +0000)]
Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan)
2007-05-14 Behdad Esfahbod <behdad@gnome.org>
* modules/input/gtkimcontextthai.c
(gtk_im_context_thai_filter_keypress):
Fix check for modifier keys. (#438261, Theppitak Karoonboonyanan)
svn path=/trunk/; revision=17842
Yair Hershkovitz [Mon, 14 May 2007 08:26:23 +0000 (08:26 +0000)]
updated hebrew translation
svn path=/trunk/; revision=17840
Matthias Clasen [Mon, 14 May 2007 04:23:45 +0000 (04:23 +0000)]
Document scrollbars-within-bevel as 2.12 addition. (#438131, Mart
2007-05-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscrolledwindow.c: Document scrollbars-within-bevel
as 2.12 addition. (#438131, Mart Raudsepp)
svn path=/trunk/; revision=17839
Matthias Clasen [Mon, 14 May 2007 04:18:33 +0000 (04:18 +0000)]
Fix size requisition for wide vertical separators. (#438113, Benjamin
2007-05-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkvseparator.c (gtk_vseparator_size_request): Fix
size requisition for wide vertical separators. (#438113,
Benjamin Berg)
svn path=/trunk/; revision=17837
Emmanuele Bassi [Sun, 13 May 2007 21:21:39 +0000 (21:21 +0000)]
Include <ftw.h> and use nftw() and all the symbols defined in <ftw.h>
2007-05-13 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtksearchenginesimple.c: Include <ftw.h> and use nftw() and
all the symbols defined in <ftw.h> conditionally.
svn path=/trunk/; revision=17836
Cody Russell [Sun, 13 May 2007 18:44:27 +0000 (18:44 +0000)]
Fix context iterations for handle_configure_event()
svn path=/trunk/; revision=17834
Yannig MARCHEGAY [Sun, 13 May 2007 12:59:25 +0000 (12:59 +0000)]
Occitan translation update
svn path=/trunk/; revision=17833
Behdad Esfahbod [Sat, 12 May 2007 18:52:36 +0000 (18:52 +0000)]
Fix wrong cairo path generation. (#437879, Eddie C. Dost)
2007-05-12 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkdraw.c (gdk_draw_trapezoids): Fix wrong cairo path
generation. (#437879, Eddie C. Dost)
svn path=/trunk/; revision=17831
Jorge Gonzalez Gonzalez [Sat, 12 May 2007 18:39:22 +0000 (18:39 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=17830
Emmanuele Bassi [Fri, 11 May 2007 19:44:32 +0000 (19:44 +0000)]
GtkFileChooser search fixes and recent files support. (#435342)
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
GtkFileChooser search fixes and recent files support. (#435342)
* gtk/gtkfilechooserdefault.c: Support drag and drop for
adding shortcuts of folders when in search or recent files
mode.
svn path=/trunk/; revision=17829
Emmanuele Bassi [Fri, 11 May 2007 19:42:40 +0000 (19:42 +0000)]
GtkFileChooser search fixes and recent files support. (#435342)
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
GtkFileChooser search fixes and recent files support. (#435342)
* gtk/gtkfilechooserprivate.h:
* gtk/gtkfilechooserdefault.c: Follow the sorting order of
the GtkTreeView displaying the files list.
(shortcuts_get_index), (shortcuts_insert_separator),
(shortcuts_model_create), (shortcuts_combo_filter_func): Remove
the separator between the Search and the Recently Used shortcuts.
(list_select_func), (list_icon_data_func), (list_name_data_func),
(list_mtime_data_func): Update the sensitivity of the row
depending on the GtkFileChooserAction used.
svn path=/trunk/; revision=17828
Emmanuele Bassi [Fri, 11 May 2007 19:37:26 +0000 (19:37 +0000)]
GtkFileChooser search fixes and recent files support. (#435342)
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
GtkFileChooser search fixes and recent files support. (#435342)
* gtk/gtkfilechooserprivate.h:
* gtk/gtkfilechooserdefault.c: Update the contents of the
files list when changing the filter of the GtkFileChooserDefault
widget.
svn path=/trunk/; revision=17827
Emmanuele Bassi [Fri, 11 May 2007 19:33:38 +0000 (19:33 +0000)]
GtkFileChooser search fixes and recent files support. (#435342)
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
GtkFileChooser search fixes and recent files support. (#435342)
* gtk/gtkfilechooserdefault.c: Update the add bookmark button
sensitivity when in search or recent files mode, and allow
adding a bookmark for a folder.
svn path=/trunk/; revision=17826
Emmanuele Bassi [Fri, 11 May 2007 19:30:38 +0000 (19:30 +0000)]
GtkFileChooser search fixes and recent files support. (#435342)
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
GtkFileChooser search fixes and recent files support. (#435342)
* gtk/gtkfilechooserdefault.c: UI fixes in the Search mode: add
a mnemonic to the label, de-boldify the label's text and assign
focus to the search entry when switching to the search mode.
(list_name_data_func): Split the text in both search and recent
files mode: on the first line use the short name and on the
second line use the full path.
svn path=/trunk/; revision=17825
Emmanuele Bassi [Fri, 11 May 2007 19:26:32 +0000 (19:26 +0000)]
GtkFileChooser search fixes and recent files support. (#435342)
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
GtkFileChooser search fixes and recent files support. (#435342)
* gtk/gtkfilechooserprivate.h:
* gtk/gtkfilechooserdefault.c: Add support for showing the
recently used files list as a special shortcut item.
svn path=/trunk/; revision=17824
Emmanuele Bassi [Fri, 11 May 2007 19:22:38 +0000 (19:22 +0000)]
GtkFileChooser search fixes and recent files support. (#435342)
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
GtkFileChooser search fixes and recent files support. (#435342)
* gtk/gtkfilechooserdefault.c: Overall whitespace fixes and
indentation style consistency.
(list_row_activated): If the search hit is a folder, follow it
when activating the row, and switch back to browse mode.
(search_clear_model), (search_start_query),
(search_entry_activate_cb), (search_setup_widgets): Remember
the last query when switching between modes.
svn path=/trunk/; revision=17823
Emmanuele Bassi [Fri, 11 May 2007 19:16:59 +0000 (19:16 +0000)]
Add key binding for the Search shortcut; default to MOD1+S.
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkfilechooserdefault.c:
(_gtk_file_chooser_default_class_init): Add key binding for
the Search shortcut; default to MOD1+S.
(search_shortcut_handler): Handle the key binding.
(search_hit_get_info_cb), (search_add_hit), (search_clear_model),
(search_setup_model): Retrieve informations on the search hits
when adding them to the model.
(list_icon_data_func): Show the search hit icon.
svn path=/trunk/; revision=17822
Michael Natterer [Fri, 11 May 2007 16:03:48 +0000 (16:03 +0000)]
call gdk_event_request_motions(event) so selecting works with XInput
2007-05-11 Michael Natterer <mitch@imendio.com>
* gtk/gtktextview.c (selection_motion_event_handler): call
gdk_event_request_motions(event) so selecting works with
XInput devices too. Spotted by Tommi Komulainen.
svn path=/trunk/; revision=17820
Emmanuele Bassi [Fri, 11 May 2007 14:08:57 +0000 (14:08 +0000)]
Fall back to GtkSearchEngineSimple only if gthread has already been
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtksearchengine.c (_gtk_search_engine_new): Fall back
to GtkSearchEngineSimple only if gthread has already been
initialiased; otherwise, disable search support in the file
chooser widget. (#435847)
svn path=/trunk/; revision=17819
Matthias Clasen [Thu, 10 May 2007 20:19:38 +0000 (20:19 +0000)]
Unparent the old image before overwriting priv->image. (#437281, Jochen
2007-05-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbutton.c (gtk_button_set_image): Unparent the old
image before overwriting priv->image. (#437281, Jochen Baier)
svn path=/trunk/; revision=17816
Matthias Clasen [Thu, 10 May 2007 19:31:33 +0000 (19:31 +0000)]
Correct a confusing warning. (#437284, Björn Lindqvist)
2007-05-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_child):
Correct a confusing warning. (#437284, Björn Lindqvist)
svn path=/trunk/; revision=17815
Matthias Clasen [Thu, 10 May 2007 19:23:30 +0000 (19:23 +0000)]
Don't call into the backend if the region is empty. (#437081, Sven
2007-05-10 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkdraw.c (gdk_draw_pixbuf): Don't call into
the backend if the region is empty. (#437081, Sven Neumann)
svn path=/trunk/; revision=17813
Matthias Clasen [Thu, 10 May 2007 15:04:51 +0000 (15:04 +0000)]
Assume Posix nftw behaviour
svn path=/trunk/; revision=17812
Dom Lachowicz [Wed, 9 May 2007 16:30:23 +0000 (16:30 +0000)]
GtkTreeView doesn't expand/collapse with Right/Left cursor keys on Windows
2007-05-09 Dom Lachowicz <domlachowicz@gmail.com>
* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: GtkTreeView
doesn't
expand/collapse with Right/Left cursor keys on Windows
(#436269, Daniel Atallah)
svn path=/trunk/; revision=17810
Cody Russell [Wed, 9 May 2007 15:46:41 +0000 (15:46 +0000)]
Refactored arrow border size, visible area, and sensitive area calculations
svn path=/trunk/; revision=17808
Kristian Rietveld [Wed, 9 May 2007 14:06:02 +0000 (14:06 +0000)]
Disable key bindings during rubber banding, make pressing Esc stop rubber
2007-05-09 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_key_press),
(gtk_tree_view_key_release):
* gtk/gtkiconview.c (gtk_icon_view_class_init),
(gtk_icon_view_key_press),
(gtk_icon_view_key_release): Disable key bindings during rubber
banding, make pressing Esc stop rubber banding. (#405027).
svn path=/trunk/; revision=17807
Emmanuele Bassi [Wed, 9 May 2007 10:59:15 +0000 (10:59 +0000)]
Return GTK_STOCK_DIRECTORY for entries with MIME type
2007-05-09 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c:
(gtk_recent_info_get_icon): Return GTK_STOCK_DIRECTORY for entries
with MIME type "x-directory/normal", instead of GTK_STOCK_FILE.
svn path=/trunk/; revision=17804
Tim Janik [Tue, 8 May 2007 21:09:07 +0000 (21:09 +0000)]
removed unbalanced tag that broke the XML.
Tue May 8 23:06:38 2007 Tim Janik <timj@gtk.org>
* docs/tutorial/gtk-tut.sgml: removed unbalanced tag that broke the XML.
svn path=/trunk/; revision=17802
Kjartan Maraas [Tue, 8 May 2007 11:16:26 +0000 (11:16 +0000)]
Updated Norwegian bokmål translation.
2007-05-08 Kjartan Maraas <kmaraas@gnome.org>
* nb.po: Updated Norwegian bokmål translation.
svn path=/trunk/; revision=17801
Ihar Hrachyshka [Sun, 6 May 2007 13:14:04 +0000 (13:14 +0000)]
Updated Belarusian Latin translation.
* be@latin.po: Updated Belarusian Latin translation.
svn path=/trunk/; revision=17799
Richard Hult [Sat, 5 May 2007 10:19:39 +0000 (10:19 +0000)]
Fix bugs #428733 and #433301. Turns out the lockFocus logic was flawed,
007-05-05 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkdrawable-quartz.c:
(gdk_quartz_drawable_get_context),
(gdk_quartz_drawable_release_context): Fix bugs #428733 and #433301.
Turns out the lockFocus logic was flawed, now we only lock/unlock
when called outside a real expose event and never flush manually.
svn path=/trunk/; revision=17798
Alexander Shopov [Sat, 5 May 2007 07:29:57 +0000 (07:29 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2007-05-05 Alexander Shopov <ash@contact.bg>
* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>
svn path=/trunk/; revision=17797
Jorge Gonzalez Gonzalez [Fri, 4 May 2007 23:58:53 +0000 (23:58 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=17794
Djihed Afifi [Fri, 4 May 2007 14:50:23 +0000 (14:50 +0000)]
Updated Arabic Translation by Khaled Hosny.
svn path=/trunk/; revision=17792
Yang Zhang [Fri, 4 May 2007 02:54:55 +0000 (02:54 +0000)]
Updated zh_CN translation from gtk-2-10
svn path=/trunk/; revision=17791
Behdad Esfahbod [Fri, 4 May 2007 00:24:46 +0000 (00:24 +0000)]
Make GTK_JUSTIFY_FILL work, using pango_layout_set_justify() that works
2007-05-03 Behdad Esfahbod <behdad@gnome.org>
* gtk/gtklabel.c (gtk_label_ensure_layout):
* gtk/gtktextlayout.c (set_para_values): Make GTK_JUSTIFY_FILL work,
using pango_layout_set_justify() that works now. (#435675)
svn path=/trunk/; revision=17790
Emmanuele Bassi [Thu, 3 May 2007 15:29:17 +0000 (15:29 +0000)]
Remove spurious g_free() call.
2007-05-03 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtksearchenginesimple.c (search_engine_simple_finalize): Remove
spurious g_free() call.
svn path=/trunk/; revision=17786
Tim Janik [Thu, 3 May 2007 14:33:17 +0000 (14:33 +0000)]
made handle box test non-modal, so other test can interact with handle
Thu May 3 16:27:34 2007 Tim Janik <timj@imendio.com>
* tests/testgtk.c (create_handle_box): made handle box test non-modal,
so other test can interact with handle boxes.
svn path=/trunk/; revision=17785
Emmanuele Bassi [Wed, 2 May 2007 22:51:43 +0000 (22:51 +0000)]
Add search file support in the GtkFileChooser. Original patch by Federico
2007-05-02 Emmanuele Bassi <ebassi@gnome.org>
Add search file support in the GtkFileChooser. Original patch
by Federico Mena Quintero; patch updated by Matthias Clasen.
See bug #344785.
* gtk/gtksearchengine.[ch]: Private search engine abstraction
object.
* gtk/gtksearchenginebeagle.[ch]: Private search engine
implementation using libbeagle (via g_module_open()).
* gtk/gtksearchenginesimple.[ch]: Private search engine
implementation using file tree walking.
* gtk/gtksearchenginetracker.[ch]: Private earch engine
implementation using libtracker (via g_module_open()).
* gtk/gtkquery.[ch]: Private query object for the search
engines.
* gtk/gtkfilechooserprivate.h:
* gtk/gtkfilechooserdefault.c: Use the GtkSearchEngine to
query a search engine backend using GtkQuery; create a new
operating mode, OPERATION_MODE_SEARCH, and call the common
operating mode OPERATION_MODE_BROWSE; add support for virtual
shortcuts inside the shortcuts model and create a new "Search"
virtual shortcut.
* gtk/Makefile.am: Update the build with the new files
svn path=/trunk/; revision=17783
Armin Burgmeier [Wed, 2 May 2007 22:19:45 +0000 (22:19 +0000)]
Destroy the menu in dispose instead of finalize, because the menu might
2007-05-02 Armin Burgmeier <armin@openismus.com>
* gtk/gtkcombobox.c: Destroy the menu in dispose instead of
finalize, because the menu might unparent itself from its parent and
cause a signal emission on a finalized object. (#430746)
svn path=/trunk/; revision=17782
Dom Lachowicz [Wed, 2 May 2007 15:07:34 +0000 (15:07 +0000)]
MS-Windows Theme top tabs rendered upside down for non-XP theme (#435053,
2007-05-02 Dom Lachowicz <domlachowicz@gmail.com>
* modules/engines/ms-windows/msw_style.c: MS-Windows Theme top
tabs
rendered upside down for non-XP theme (#435053, Daniel Atallah)
svn path=/trunk/; revision=17773
Tim Janik [Wed, 2 May 2007 09:39:34 +0000 (09:39 +0000)]
removed, since this file is long outdated and fully replaced by
Wed May 2 11:35:45 2007 Tim Janik <timj@imendio.com>
* docs/faq/gtkfaq.sgml: removed, since this file is long outdated
and fully replaced by docs/faq/gtk-faq.sgml.
svn path=/trunk/; revision=17772
Kristian Rietveld [Wed, 2 May 2007 08:08:39 +0000 (08:08 +0000)]
stop the rubber band if it's active.
2007-05-02 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_grab_notify): stop the rubber band
if it's active.
svn path=/trunk/; revision=17770
Matthias Clasen [Wed, 2 May 2007 02:19:08 +0000 (02:19 +0000)]
Don't be too strict when checking icon flags. (#435062)
2007-05-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcachevalidator.c: Don't be too strict when checking
icon flags. (#435062)
svn path=/trunk/; revision=17767
Matthias Clasen [Wed, 2 May 2007 02:15:36 +0000 (02:15 +0000)]
Only copy pngs when generating builtin cache
svn path=/trunk/; revision=17766
Matthias Clasen [Wed, 2 May 2007 01:19:59 +0000 (01:19 +0000)]
Don't ignore the fact that gtk_file_system_get_parent() may return NULL.
2007-05-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemmodel.c (_gtk_file_system_model_path_do):
Don't ignore the fact that gtk_file_system_get_parent()
may return NULL. (#424042, Jan Martinek)
svn path=/trunk/; revision=17764
Dan Winship [Wed, 2 May 2007 00:02:14 +0000 (00:02 +0000)]
Make sure the leader_window's WM_CLIENT_LEADER points to itself. #435028
* gdk/x11/gdkwindow-x11.c (setup_toplevel_window): Make sure the
leader_window's WM_CLIENT_LEADER points to itself. #435028
svn path=/trunk/; revision=17762
Christian Persch [Tue, 1 May 2007 22:32:57 +0000 (22:32 +0000)]
Use GSlice for gtk_tree_iter_copy. Bug #434863.
2007-05-02 Christian Persch <chpe@gnome.org>
* gtk/gtktreemodel.c: (gtk_tree_iter_copy), (gtk_tree_iter_free): Use
GSlice for gtk_tree_iter_copy. Bug #434863.
svn path=/trunk/; revision=17761
Christian Persch [Tue, 1 May 2007 22:31:29 +0000 (22:31 +0000)]
Put only GtkPaperSizes into the list, don't mix it with GtkPageSetups. Bug
2007-05-02 Christian Persch <chpe@gnome.org>
* gtk/gtkpapersize.c: (gtk_paper_size_get_paper_sizes): Put only
GtkPaperSizes into the list, don't mix it with GtkPageSetups. Bug
#434861.
svn path=/trunk/; revision=17760
Christian Persch [Tue, 1 May 2007 22:26:00 +0000 (22:26 +0000)]
Use GSlice to allocate GtkPaperSize. Bug #434862.
2007-05-02 Christian Persch <chpe@gnome.org>
* gtk/gtkpapersize.c: (gtk_paper_size_new_from_info),
(gtk_paper_size_new), (gtk_paper_size_new_custom),
(gtk_paper_size_copy), (gtk_paper_size_free): Use GSlice to allocate
GtkPaperSize. Bug #434862.
svn path=/trunk/; revision=17759
Christian Persch [Tue, 1 May 2007 22:22:49 +0000 (22:22 +0000)]
No need to allocate a guint; just stuff the ID into the pointer directly.
2007-05-02 Christian Persch <chpe@gnome.org>
* gtk/gtkstatusbar.c: (gtk_statusbar_get_context_id),
(gtk_statusbar_expose_event): No need to allocate a guint; just stuff
the ID into the pointer directly. Bug #434865.
svn path=/trunk/; revision=17758
Matthias Clasen [Tue, 1 May 2007 22:01:16 +0000 (22:01 +0000)]
Remove debug spew
svn path=/trunk/; revision=17756
Matthias Clasen [Tue, 1 May 2007 20:35:33 +0000 (20:35 +0000)]
add a new struct field to clear the file entry after the current folder
2007-05-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (struct UpdateCurrentFolderData),
(update_current_folder_get_info_cb): add a new struct field to clear
the file entry after the current folder has been updated.
(gtk_file_chooser_default_update_current_folder),
(change_folder_and_display_error): Add a new function parameter to
trigger file entry clearing.
(edited_idle_create_folder_cb),
(file_list_drag_data_received_get_info_cb),
(gtk_file_chooser_default_map),
(gtk_file_chooser_default_set_current_folder),
(switch_to_selected_folder), (save_entry_get_info_cb),
(shortcuts_activate_volume_mount_cb), (shortcuts_activate_volume),
(shortcuts_activate_get_info_cb), (list_row_activated),
(path_bar_clicked): use new function parameter appropriately.
(gtk_file_chooser_default_should_respond): trigger file entry clearing
after the directory is updated instead of clearing it before, this way
we avoid reloading the completion model with the soon to be old folder,
causing a warning and a glitch in the folder where completion happens.
(#379414, Carlos Garnacho)
svn path=/trunk/; revision=17754
Matthias Clasen [Tue, 1 May 2007 20:00:17 +0000 (20:00 +0000)]
Add an icon cache validator.
2007-05-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconcachvalidator.[hc]: Add an icon cache validator.
* gtk/updateiconcache.c: Validate the generated cache before
moving it in place. Also add a --validate option to validate
an existing icon cache.
* gtk/gtkiconcache.c: Validate icon caches before using them.
* gtk/Makefile.am: Integrate it.
svn path=/trunk/; revision=17753
Michael Emmel [Tue, 1 May 2007 16:10:51 +0000 (16:10 +0000)]
Added stub gdk_notify_startup_complete_with_id to compile Added
2007-05-01 Michael Emmel <mike.emmel@gmail.com>
* gdk/directfb/gdkdisplay-directfb.c:
Added stub gdk_notify_startup_complete_with_id to compile
* gdk/directfb/gdkwindow-directfb.c:
Added gdk_window_set_opacity
* gdk/directfb/gdkkeys-directfb.c:
Fix menu key handling crash Bug #413328
svn path=/trunk/; revision=17752
Christian Persch [Tue, 1 May 2007 13:33:47 +0000 (13:33 +0000)]
Also move gtk_print_capabilities_get_type() to the new location. Bug
2007-05-01 Christian Persch <chpe@gnome.org>
* gtk/gtkprinter.h:
* gtk/gtkprintjob.h: Also move gtk_print_capabilities_get_type() to
the new location. Bug #390437.
svn path=/trunk/; revision=17751
Matthias Clasen [Mon, 30 Apr 2007 19:27:08 +0000 (19:27 +0000)]
Make sure we always have a color_hash. (#423916, Jens Granseuer)
2007-04-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (settings_update_color_scheme):
Make sure we always have a color_hash. (#423916, Jens Granseuer)
svn path=/trunk/; revision=17748
Christian Persch [Mon, 30 Apr 2007 19:14:27 +0000 (19:14 +0000)]
Make gtk_printer_get_capabilities public, and move the
2007-04-30 Christian Persch <chpe@gnome.org>
* docs/reference/gtk/gtk-sections.txt:
* gtk/gtk.symbols:
* gtk/gtkprinter-private.h:
* gtk/gtkprinter.c: (gtk_printer_get_capabilities),
(gtk_print_capabilities_get_type):
* gtk/gtkprinter.h:
* gtk/gtkprintjob.c:
* gtk/gtkprintjob.h:
* gtk/gtkprintunixdialog.c: (selected_printer_changed):
Make gtk_printer_get_capabilities public, and move the
GtkPrintCapabilities definition to gtkprinter.h. Bug #390437.
svn path=/trunk/; revision=17747
Christian Persch [Mon, 30 Apr 2007 19:12:00 +0000 (19:12 +0000)]
Make gtk_printer_get_capabilities public, and move the
2007-04-30 Christian Persch <chpe@gnome.org>
* docs/reference/gtk/gtk-sections.txt:
* gtk/gtk.symbols:
* gtk/gtkprinter-private.h:
* gtk/gtkprinter.c: (gtk_printer_get_capabilities),
(gtk_print_capabilities_get_type):
* gtk/gtkprinter.h:
* gtk/gtkprintunixdialog.c: (selected_printer_changed):
Make gtk_printer_get_capabilities public, and move the
GtkPrintCapabilities definition to gtkprinter.h. Bug #390437.
svn path=/trunk/; revision=17746
Matthias Clasen [Mon, 30 Apr 2007 17:57:53 +0000 (17:57 +0000)]
A NO_WINDOW widget must not set the background of its window. (#433972,
2007-04-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkexpander.c (gtk_expander_realize): A NO_WINDOW widget
must not set the background of its window. (#433972,
Guilherme Polo)
svn path=/trunk/; revision=17744
Richard Hult [Mon, 30 Apr 2007 17:42:49 +0000 (17:42 +0000)]
Implement.
2007-04-30 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_opacity):
Implement.
svn path=/trunk/; revision=17743
Matthias Clasen [Mon, 30 Apr 2007 17:39:40 +0000 (17:39 +0000)]
Get all the printer attributes when getting the list of printers, not via
2007-04-30 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c: Get all
the printer attributes when getting the list of printers,
not via separate requests. (#387889, Krishan Purahoo)
svn path=/trunk/; revision=17741
Matthias Clasen [Mon, 30 Apr 2007 16:22:31 +0000 (16:22 +0000)]
Some more compiler warning fixes.
2007-04-30 Matthias Clasen <mclasen@redhat.com>
Some more compiler warning fixes.
* gdk/directfb/gdkscreen-directfb.c (gdk_screen_is_composited):
Fix NULL/FALSE confusion.
svn path=/trunk/; revision=17740
Matthias Clasen [Mon, 30 Apr 2007 16:18:54 +0000 (16:18 +0000)]
Fix some compiler warnings. (#433642, Kjartan Maraas)
2007-04-30 Matthias Clasen <mclasen@redhat.com>
Fix some compiler warnings. (#433642, Kjartan Maraas)
* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_get_info):
(gtk_file_system_win32_create_folder):
* gtk/gtkaction.c (gtk_action_create_menu): Fix NULL/FALSE confusion.
* gtk/gtklinkbutton.c (gtk_link_button_clicked): Pass
the right type to uri_func.
* gtk/gtktext.c (gtk_text_key_press):
* gtk/gtkstatusicon.c (gtk_status_icon_get_property):
* gtk/gtkxembed.c (_gtk_xembed_send_message): Add casts.
* gtk/gtktrayicon-x11.c (gtk_tray_icon_manager_window_destroyed):
(gtk_tray_icon_delete):
* gtk/gtkprintunixdialog.c (create_main_page):
* gtk/gtkhsv.c (gtk_hsv_motion): Remove unused variables.
* gtk/gtkliststore.c: Adapt callbacks to GSequence types.
svn path=/trunk/; revision=17739
Cody Russell [Mon, 30 Apr 2007 15:29:16 +0000 (15:29 +0000)]
Clear correct area
svn path=/trunk/; revision=17737
Matthias Clasen [Mon, 30 Apr 2007 15:17:45 +0000 (15:17 +0000)]
Allow indents to be negative. (#Bug 434308)
2007-04-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c: Allow indents to be negative. (#Bug 434308)
svn path=/trunk/; revision=17736
Michael Natterer [Mon, 30 Apr 2007 13:00:07 +0000 (13:00 +0000)]
pop up the submenu explicitely only in touchscreen mode since otherwise
2007-04-30 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): pop up the
submenu explicitely only in touchscreen mode since otherwise
selecting the item already pops up the submenu. Restores the
drag-selection timeout (spotted by Søren Sandmann, #128968).
svn path=/trunk/; revision=17735
Michael Natterer [Mon, 30 Apr 2007 09:55:14 +0000 (09:55 +0000)]
really rename gtk_paper_size_get_builtins() to
2007-04-30 Michael Natterer <mitch@imendio.com>
* gtk/gtkpapersize.h: really rename gtk_paper_size_get_builtins()
to gtk_paper_size_get_paper_sizes().
svn path=/trunk/; revision=17734
Tor Lillqvist [Mon, 30 Apr 2007 07:42:12 +0000 (07:42 +0000)]
_gtk_load_custom_papers() exists only on Unix.
2007-04-30 Tor Lillqvist <tml@novell.com>
* gtk/gtkpapersize.c (gtk_paper_size_get_paper_sizes):
_gtk_load_custom_papers() exists only on Unix.
svn path=/trunk/; revision=17733
Tor Lillqvist [Mon, 30 Apr 2007 07:37:57 +0000 (07:37 +0000)]
Cosmetics
svn path=/trunk/; revision=17732
Tor Lillqvist [Mon, 30 Apr 2007 07:37:24 +0000 (07:37 +0000)]
Add functionality to set overall opacity of a top-level window. (#405316)
2007-04-30 Tor Lillqvist <tml@novell.com>
Add functionality to set overall opacity of a top-level
window. (#405316)
* gtk/gtk.symbols: Add gtk_window_set_opacity and
gtk_window_get_opacity.
* gtk/gtkwindow.c (struct _GtkWindowPrivate,
(gtk_window_class_init): Add opacity property, a double in the
range [0, 1].
(gtk_window_set_opacity, gtk_window_get_opacity): Implement.
(gtk_window_realize): If opacity is set, call
gdk_window_set_opacity().
* gtk/gtkwindow.h: Declare gtk_window_set_opacity() and
gtk_window_get_opacity().
svn path=/trunk/; revision=17731
Tor Lillqvist [Mon, 30 Apr 2007 07:27:22 +0000 (07:27 +0000)]
Add functionality to set overall opacity of a top-level window. (#405316)
2007-04-30 Tor Lillqvist <tml@novell.com>
Add functionality to set overall opacity of a top-level
window. (#405316)
* gdk/gdk.symbols: Add gdk_window_set_opacity.
* gdk/x11/gdkwindow-x11.c
* gdk/win32/gdkwindow-win32.c: Implement
gdk_window_set_opacity(). On X11 use the _NET_WM_WINDOW_OPACITY
property. On Win32 use SetLayeredWindowAttributes(LWA_ALPHA).
* gdk/gdkwindow.h: Declare gdk_window_set_opacity().
* gdk/x11/gdkscreen-x11.c (gdk_screen_get_rgba_colormap): Document
that this is not implemented in the Windows backend. Add reference
to gdk_window_set_opacity().
svn path=/trunk/; revision=17730
Matthias Clasen [Mon, 30 Apr 2007 06:04:48 +0000 (06:04 +0000)]
Fix a compiler warning.
svn path=/trunk/; revision=17729
Matthias Clasen [Mon, 30 Apr 2007 06:03:01 +0000 (06:03 +0000)]
Rename gtk_paper_size_get_builtins() to gtk_paper_size_get_paper_sizes()
2007-04-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtkpapersize.[hc]: Rename gtk_paper_size_get_builtins()
to gtk_paper_size_get_paper_sizes() and optionally include
custom paper sizes.
* gtk/gtkpagesetupunixdialog.c: Internally export a function
to load custom paper sizes.
* modules/printbackends/file/gtkprintbackendfile.c: Implement
printer_list_papers, returning all paper sizes. (#434329,
Christian Persch)
svn path=/trunk/; revision=17728
Matthias Clasen [Mon, 30 Apr 2007 05:08:26 +0000 (05:08 +0000)]
Translate the default job name, and don't utf8-validate the job name in
2007-04-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation.c: Translate the default job
name, and don't utf8-validate the job name in the
setter. (#421993, Morten Welinder)
svn path=/trunk/; revision=17726
Matthias Clasen [Mon, 30 Apr 2007 04:55:25 +0000 (04:55 +0000)]
Use g_unlink. (#421990, Morten Welinder)
2007-04-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintjob.c (gtk_print_job_get_surface): Use
g_unlink. (#421990, Morten Welinder)
svn path=/trunk/; revision=17724
Matthias Clasen [Mon, 30 Apr 2007 04:45:33 +0000 (04:45 +0000)]
Fix some issues with reference handling in the printing code. (#429902,
2007-04-29 Matthias Clasen <mclasen@redhat.com>
Fix some issues with reference handling in the printing
code. (#429902, Mathias Hasselmann)
* gtk/gtkprintoperation.c (gtk_print_operation_finalize):
Unref the print context, if we have one.
(gtk_print_operation_done): Add a default ::done handler
that unrefs the print context.
(preview_ready): Take a reference on the print operation
preview here.
(print_pages_idle): ...not here,
(preview_print_idle_done): ...and release it here.
* tests/print-editor.c (preview_cb): Take a reference
on the print operation here.
svn path=/trunk/; revision=17722
Matthias Clasen [Mon, 30 Apr 2007 02:47:41 +0000 (02:47 +0000)]
Don't get stuck in a recursive mainloop if a synchronous preview is
2007-04-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation.c (print_pages_idle): Don't get
stuck in a recursive mainloop if a synchronous preview
is cancelled.
svn path=/trunk/; revision=17721